package nuaa.controller;

import nuaa.service.EvaluationService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.io.IOException;

@Controller
@RequestMapping("/evaluation")
public class EvaluationController {

    EvaluationService evaluationService=new EvaluationService();

    public EvaluationController() throws IOException {
    }

    @RequestMapping("/scoreOthers")
    public @ResponseBody void scoreOthers(@RequestParam("score") String score){
        System.out.println(score);
        //对score进行处理，分数注入到数据库中
    }
}
